package com.common;

import org.apache.http.Header;

import android.content.Context;

import com.mUI.MyProgressDialog;
import com.xike.util.MLog;

public class TextHttpResponseHandler extends com.loopj.android.http.TextHttpResponseHandler {
	public Context context;

	public TextHttpResponseHandler(Context context) {
		this.context = context;
		MyProgressDialog.show(context, true);
	}

	public TextHttpResponseHandler() {
	}

	@Override
	public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {
		MyProgressDialog.cancle();
	}

	@Override
	public void onSuccess(int statusCode, Header[] headers, String responseString) {
		MyProgressDialog.cancle();
//		MLog.e("TextHttpResponseHandler", "result:" + responseString);
	}

}
